package com.gsj.system.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志记录(SysOperLog)表实体类
 *
 * @author makejava
 * @since 2021-07-25 11:38:43
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_oper_log")
@ApiModel(value="日志对象", description="日志信息表")
public class Log implements Serializable {
    //日志主键
    @ApiModelProperty(value = "日志主键")
    @TableId(value = "oper_id", type = IdType.AUTO)
    private Integer operId;
    //模块标题
    @ApiModelProperty(value = "模块标题")
    private String title;
    //业务类型（0其它 1新增 2修改 3删除）
    @ApiModelProperty(value = "业务类型")
    private Integer businessType;
    //方法名称
    @ApiModelProperty(value = "方法名称")
    private String method;
    //操作类别（0其它 1后台用户 2手机端用户）
    @ApiModelProperty(value = "操作类别")
    private Integer operatorType;
    //操作人员
    @ApiModelProperty(value = "操作人员")
    private String operName;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    //请求URL
    @ApiModelProperty(value = "请求URL")
    private String operUrl;
    //主机地址
    @ApiModelProperty(value = "主机地址")
    private String operIp;
    //操作地点
    @ApiModelProperty(value = "操作地点")
    private String operLocation;
    //请求参数
    @ApiModelProperty(value = "请求参数")
    private String operParam;
    //操作状态（0正常 1异常）
    @ApiModelProperty(value = "操作状态")
    private Integer status;
    //错误消息
    @ApiModelProperty(value = "错误消息")
    private String errorMsg;
    //操作时间
    @ApiModelProperty(value = "操作时间")
    private Date operTime;


}
